package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户活动打卡对象 tb_take_part
 * 
 * @author 段奇乐
 * @date 2025-04-13
 */
public class TakePart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参与活动打卡id，自增 */
    private Long takePartId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户参与活动记录id */
    private Long activityUserId;

    /** 每日参与心得 */
    @Excel(name = "每日参与心得")
    private String takePartBody;

    /** 每日参与时间 */
    @Excel(name = "每日参与时间")
    private String takePartTime;

    public void setTakePartId(Long takePartId) 
    {
        this.takePartId = takePartId;
    }

    public Long getTakePartId() 
    {
        return takePartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setActivityUserId(Long activityUserId) 
    {
        this.activityUserId = activityUserId;
    }

    public Long getActivityUserId() 
    {
        return activityUserId;
    }
    public void setTakePartBody(String takePartBody) 
    {
        this.takePartBody = takePartBody;
    }

    public String getTakePartBody() 
    {
        return takePartBody;
    }
    public void setTakePartTime(String takePartTime) 
    {
        this.takePartTime = takePartTime;
    }

    public String getTakePartTime() 
    {
        return takePartTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("takePartId", getTakePartId())
            .append("userId", getUserId())
            .append("activityUserId", getActivityUserId())
            .append("createTime", getCreateTime())
            .append("takePartBody", getTakePartBody())
            .append("takePartTime", getTakePartTime())
            .toString();
    }

    // 额外的属性
    /** 当前天起始时间 */
    private Date startOfDay;

    /** 当前天结束时间 */
    private Date endOfDay;

    public Date getEndOfDay() {
        return endOfDay;
    }

    public void setEndOfDay(Date endOfDay) {
        this.endOfDay = endOfDay;
    }

    public Date getStartOfDay() {
        return startOfDay;
    }

    public void setStartOfDay(Date startOfDay) {
        this.startOfDay = startOfDay;
    }

}
